<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Jedrzej\Pimpable\PimpableTrait;

class SystemFile extends Model
{
    use HasFactory;
    use PimpableTrait;

    public $searchable = [
        'content',
        'filename',
        'visit_time',
        'modify_time',
        'change_time',
    ];

    public $fillable = [
        'content',
        'filename',
    ];

    public $sortable = [
        'visit_time',
        'modify_time',
        'change_time',
    ];

    protected $defaultSortCriteria = ['id,desc'];

}
